package moe.oil.exception.user;

import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;

public class UsernameNotFoundException extends ServiceException {
    public UsernameNotFoundException(String username) {
        super(
                String.format("Username %s not found", username),
                HttpStatus.NOT_FOUND,
                ErrorType.MUST_BE_NOT_BLANK,
                username
        );
    }
}
